package com.zretc.dao;

import com.zretc.entity.Movie;
import com.zretc.entity.Order;
import com.zretc.entity.OrderDetail;
import org.apache.ibatis.annotations.MapKey;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
@Component
public interface OrderDetailMapper {

    /**
     * 戴世星
     * 2020/7/25
     * 根据订单状态查询影院名和票房
     * @param isDelete
     * @return
     */
    @MapKey("cinema_id")
    List<Map<String,Object>> findCinemaNameAndBox(Integer isDelete);

    /**
     * 戴世星
     * 2020/7/25
     * 根据订单状态查询电影名和票房
     * @param isDelete
     * @return
     */
    List<Map<String,Object>> findMovieNameAndBox(Integer isDelete);
}
